<form action="{:url('Pricemanage/updprice')}" class="layui-form ajax-form" method="post"
      style="margin: 20px">


    <div class="layui-form-item">
        <label class="layui-form-label">驾驶证等级</label>
        <div class="layui-input-block">
            <select name="driving_licence_id" lay-verify="required">
                <option value="">请选择驾驶证等级</option>
                {volist name='data' id='c'}
                <option value="{$c.driving_licence_id}" {eq name="$c.driving_licence_id" value="$info['driving_licence_id']" }selected{/eq} >{$c.drive_level}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">租金（公里）</label>
        <div class="layui-input-block">
            <input type="number" name="drivelevel_price" value="{$info.drivelevel_price}"
                   autocomplete="off" class="layui-input" maxlength="11">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">租金（天数）</label>
        <div class="layui-input-block">
            <input type="number" name="drivelevel_priceday" value="{$info.drivelevel_priceday}"
                   autocomplete="off" class="layui-input" maxlength="11">
        </div>
    </div>

    <div class="layui-form-item" style="text-align: right">
        {:token()}
        <input type="hidden" name="drivelevel_id" value="{$info.drivelevel_id}" />
        <button class="layui-btn" lay-submit="" >确定</button>
        <button type="button" class="layui-btn layui-layer-close clearpostion layui-btn-primary">关闭</button>
    </div>
</form>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;
        form.render(); //更新全部
    });
</script>
